<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$route['admin/news'] = 'news/admin/index';
$route['admin/news/(:num)'] = 'news/admin/index/$1';
$route['admin/news/add'] = 'news/admin/add';
$route['admin/news/edit'] = 'news/admin/edit';
$route['admin/news/edit/(:num)'] = 'news/admin/edit/$1';
$route['admin/news/delete'] = 'news/admin/delete';
$route['admin/news/delete/(:num)'] = 'news/admin/delete/$1';

$route['news'] = 'news/index';
$route['news/(:num)'] = 'news/index/$1';
$route['news/detail'] = 'news/detail';
$route['news/detail/(:num)'] = 'news/detail/$1';
//$route['admin/news/(:num)'] = 'news/admin/index/(:num)';
///$route['news/(:any)'] = 'news/$1';
